<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>
        Sample of Silverlight AJAX bridge
    </title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="....//js/gestalt.js" type="text/javascript"></script>
</head>
<body>
    <p>
        This is a sample of bridging Silverlight and AJAX
    </p>
    <xml id="MyButton" class="xaml" width="160" height="60" style="display:none;">
      <StackPanel>
       <Button Content="Push Me!" x:Name="Button1" Height="50" Width="150"></Button>
      </StackPanel>
    </xml>
    
    <p />
    
    <xml id="MyCanvas" class="xaml" width="260" height="200" style="display:none;">
        <Canvas Background="Green" Width="250" Height="195" x:Name="Canvas1"></Canvas>
    </xml>
    
    <p />
    
    <xml src="test.xaml" id="MyButtons" class="xaml" width="305" height="150" style="display:none;"></xml>
    
    <p />
    
    <script language="python" class="MyButton">
def handleClick(sender, eventargs):
    sender.Content = 'Thanks!'
    
    
button = me.Button1
button.Click += handleClick


    </script>
    
    <script language="ruby" class="MyButton">
$button = $me.Button1
$button.FontWeight = FontWeights.ExtraBold
    </script>
    
    <script language="ruby" class="MyCanvas" src="test.rb"></script>
    
    <script language="python" class="MyButtons" src="test.py"></script>
    
</body>
</html>
    